package a51qindian.com.comprehensive.activity;

import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.li.widget.TopNavigationBar;

import a51qindian.com.comprehensive.R;
import a51qindian.com.comprehensive.adapter.ConsumptionAdapter;
import a51qindian.com.comprehensive.base.QDBaseActivity;
import a51qindian.com.comprehensive.items.LinearItemDecoration;
import butterknife.BindView;


/**
 * Author: Li
 * Date: 2017/9/13 0013
 * Description: 设备消费记录
 */

public class ConsumptionActivity extends QDBaseActivity {

    @BindView(R.id.top_navigation)
    TopNavigationBar mTopNavigation;
    @BindView(R.id.recycler_consumption)
    RecyclerView mRecyclerConsumption;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_consumption;
    }

    @Override
    protected void initSth() {
        super.initSth();
        mTopNavigation.setNavigationBarListener(this);
        ConsumptionAdapter adapter=new ConsumptionAdapter(this);
        mRecyclerConsumption.setLayoutManager(new LinearLayoutManager(this));
        mRecyclerConsumption.setAdapter(adapter);
        mRecyclerConsumption.addItemDecoration(new LinearItemDecoration());
    }
}
